def fun1(n):
    if n>0:
        fun1(n-1)
        print(n)

def fun2(n):
    if n>0:
        print(n)
        fun2(n-1)


fun1(3)
fun2(3)